package com.kuwou.workobject.Utils;

import com.baomidou.mybatisplus.extension.toolkit.Db;
import com.kuwou.workobject.pojo.entity.Channel;
import com.kuwou.workobject.pojo.entity.Music;
import com.kuwou.workobject.pojo.entity.RankList;
import com.kuwou.workobject.pojo.entity.SingerList;
import com.kuwou.workobject.service.ChannelService;

import java.util.List;


public class QueryUtil {

    // 获取所有排行榜
    public static List<RankList> getAllRankList(){
        return Db.list(RankList.class);
    }

    // 获取所有频道
    public static List<Channel> getAllChannel(){
        return Db.list(Channel.class);
    }

    // 获取所有音乐
    public static List<Music> getAllMusic(){
        return Db.list(Music.class);
    }

    // 获取所有歌手
    public static List<SingerList> getAllSinger(){
        return Db.list(SingerList.class);
    }
}
